package com.hnevc.yourhealthmanager.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value = "SportRecordDTO", description = "运动记录DTO信息")
public class SportRecordDTO {

    @ApiModelProperty(value = "运动记录ID")
    private Integer id;
    @ApiModelProperty(value = "运动ID")
    private Integer sportId;
    @ApiModelProperty(value = "运动名称")
    private String sportName;
    @ApiModelProperty(value = "用户ID")
    private Integer userId;
    @ApiModelProperty(value = "用户姓名")
    private String username;
    @ApiModelProperty(value = "运动图片")
    private String sportImage;
    @ApiModelProperty(value = "行走的步数")
    private Integer sportSteps;
    @ApiModelProperty(value = "运动组数")
    private Integer sportTimes;
    @ApiModelProperty(value = "运动时长")
    private Integer sportDuration;

    @ApiModelProperty(value = "运动记录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date sportDate;
    // 省略getter和setter方法
}